Ext.define('cloud.store.EditAppStore', {
    extend: 'Ext.data.Store',
    requires: ['Ext.data.proxy.Rest'],
    config: {
        model: 'cloud.model.EditApp',
        id: 'EditAppStore',
        autoLoad: false,
        autoSync: true,
        remoteSort: true,
        remoteFilter: true,
        pageSize: 10,
        proxy: {
            type: 'rest',
            url: 'http://cloud.com/server/cloud/1/app_info_get?caid=2',
            appendId: true,
            reader: {
                type: 'json',
                rootProperty: 'Variables.app_info',
                totalProperty: 'status'
            },
            writer: {
                type: 'json'
            },
            listeners: {
                exception: function (proxy, response) {
                    Ext.Msg.alert(Ext.decode(response.responseText).message);
                }
            }
        }
    }
});